package com.builder;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

import com.model.Marca;
import com.view.MarcaView;

@SuppressWarnings("serial")
@ManagedBean
@ViewScoped
public class MarcaBuilder extends BaseBuilder<MarcaView, Marca> {

	public Marca toDomain(MarcaView view) {
		return new Marca(view.getId(), view.getDescripcion());
	}

	public MarcaView toView(Marca model) {
		return new MarcaView(model.getID(), model.getDescripcion());
	}
}
